package com.sqinterface;

/**
 * @Auther: shiquan
 * @Date: 2024/10/22 - 10 - 22 -11:40
 */
public class Test {
    public static void main(String[] args) {
        Frog f = new Frog("小青",12);
        System.out.println(f.getName()+","+f.getAge());
        f.eat();
        f.swim();

        //创建兔子对象
        Rabbit r = new Rabbit();
        System.out.println(r.getName()+","+r.getAge());
        r.eat();



    }
}
